Optimal. Leaf size=100 \[ -\frac {1}{3 a c x^3}+\frac {b c+a d}{a^2 c^2 x}+\frac {b^{5/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a^{5/2} (b c-a d)}-\frac {d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{c^{5/2} (b c-a d)} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 100, normalized size of antiderivative = 1.00, number of steps
used = 5, number of rules used = 4, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.182, Rules used = {491, 597, 536,
211} \begin {gather*} \frac {b^{5/2} \text {ArcTan}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a^{5/2} (b c-a d)}+\frac {a d+b c}{a^2 c^2 x}-\frac {d^{5/2} \text {ArcTan}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{c^{5/2} (b c-a d)}-\frac {1}{3 a c x^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 211
Rule 491
Rule 536
Rule 597
Rubi steps
\begin {align*} \int \frac {1}{x^4 \left (a+b x^2\right ) \left (c+d x^2\right )} \, dx &=-\frac {1}{3 a c x^3}+\frac {\int \frac {-3 (b c+a d)-3 b d x^2}{x^2 \left (a+b x^2\right ) \left (c+d x^2\right )} \, dx}{3 a c}\\ &=-\frac {1}{3 a c x^3}+\frac {b c+a d}{a^2 c^2 x}-\frac {\int \frac {-3 \left (b^2 c^2+a b c d+a^2 d^2\right )-3 b d (b c+a d) x^2}{\left (a+b x^2\right ) \left (c+d x^2\right )} \, dx}{3 a^2 c^2}\\ &=-\frac {1}{3 a c x^3}+\frac {b c+a d}{a^2 c^2 x}+\frac {b^3 \int \frac {1}{a+b x^2} \, dx}{a^2 (b c-a d)}-\frac {d^3 \int \frac {1}{c+d x^2} \, dx}{c^2 (b c-a d)}\\ &=-\frac {1}{3 a c x^3}+\frac {b c+a d}{a^2 c^2 x}+\frac {b^{5/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a^{5/2} (b c-a d)}-\frac {d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{c^{5/2} (b c-a d)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.09, size = 101, normalized size = 1.01 \begin {gather*} -\frac {1}{3 a c x^3}+\frac {b c+a d}{a^2 c^2 x}-\frac {b^{5/2} \tan ^{-1}\left (\frac {\sqrt {b} x}{\sqrt {a}}\right )}{a^{5/2} (-b c+a d)}-\frac {d^{5/2} \tan ^{-1}\left (\frac {\sqrt {d} x}{\sqrt {c}}\right )}{c^{5/2} (b c-a d)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.14, size = 96, normalized size = 0.96
method | result | size |
default | \(-\frac {b^{3} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{a^{2} \left (a d -b c \right ) \sqrt {a b}}+\frac {d^{3} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{c^{2} \left (a d -b c \right ) \sqrt {c d}}-\frac {1}{3 a c \,x^{3}}-\frac {-a d -b c}{a^{2} c^{2} x}\) | \(96\) |
risch | \(\frac {\frac {\left (a d +b c \right ) x^{2}}{a^{2} c^{2}}-\frac {1}{3 a c}}{x^{3}}+\frac {\sqrt {-c d}\, d^{2} \ln \left (\left (a^{4} c \,d^{5}+b \,c^{2} d^{4} a^{3}+b^{2} c^{3} d^{3} a^{2}+a \,b^{3} c^{4} d^{2}+b^{4} c^{5} d \right ) x -\left (-c d \right )^{\frac {3}{2}} a^{4} d^{3}-\left (-c d \right )^{\frac {3}{2}} a^{3} b c \,d^{2}-\left (-c d \right )^{\frac {3}{2}} a^{2} b^{2} c^{2} d -\left (-c d \right )^{\frac {3}{2}} a \,b^{3} c^{3}+\sqrt {-c d}\, b^{4} c^{5}\right )}{2 c^{3} \left (a d -b c \right )}-\frac {\sqrt {-c d}\, d^{2} \ln \left (\left (a^{4} c \,d^{5}+b \,c^{2} d^{4} a^{3}+b^{2} c^{3} d^{3} a^{2}+a \,b^{3} c^{4} d^{2}+b^{4} c^{5} d \right ) x +\left (-c d \right )^{\frac {3}{2}} a^{4} d^{3}+\left (-c d \right )^{\frac {3}{2}} a^{3} b c \,d^{2}+\left (-c d \right )^{\frac {3}{2}} a^{2} b^{2} c^{2} d +\left (-c d \right )^{\frac {3}{2}} a \,b^{3} c^{3}-\sqrt {-c d}\, b^{4} c^{5}\right )}{2 c^{3} \left (a d -b c \right )}+\frac {\left (\munderset {\textit {\_R} =\RootOf \left (\left (d^{2} a^{7}-2 a^{6} b c d +a^{5} b^{2} c^{2}\right ) \textit {\_Z}^{2}+b^{5}\right )}{\sum }\textit {\_R} \ln \left (\left (\left (3 a^{9} c^{5} d^{4}-10 a^{8} b \,c^{6} d^{3}+14 a^{7} b^{2} c^{7} d^{2}-10 a^{6} b^{3} c^{8} d +3 a^{5} b^{4} c^{9}\right ) \textit {\_R}^{4}+\left (2 d^{7} a^{7}-4 d^{6} c b \,a^{6}+3 b^{2} c^{2} d^{5} a^{5}+3 d^{2} c^{5} b^{5} a^{2}-4 d \,c^{6} b^{6} a +2 c^{7} b^{7}\right ) \textit {\_R}^{2}+2 b^{5} d^{5}\right ) x +\left (-a^{8} c^{3} d^{5}+a^{7} b \,c^{4} d^{4}+a^{4} b^{4} c^{7} d -a^{3} b^{5} c^{8}\right ) \textit {\_R}^{3}+a^{2} b^{4} c^{2} d^{4} \textit {\_R} \right )\right )}{2}\) | \(593\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.52, size = 96, normalized size = 0.96 \begin {gather*} \frac {b^{3} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{{\left (a^{2} b c - a^{3} d\right )} \sqrt {a b}} - \frac {d^{3} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{{\left (b c^{3} - a c^{2} d\right )} \sqrt {c d}} + \frac {3 \, {\left (b c + a d\right )} x^{2} - a c}{3 \, a^{2} c^{2} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.95, size = 560, normalized size = 5.60 \begin {gather*} \left [-\frac {3 \, b^{2} c^{2} x^{3} \sqrt {-\frac {b}{a}} \log \left (\frac {b x^{2} - 2 \, a x \sqrt {-\frac {b}{a}} - a}{b x^{2} + a}\right ) + 3 \, a^{2} d^{2} x^{3} \sqrt {-\frac {d}{c}} \log \left (\frac {d x^{2} + 2 \, c x \sqrt {-\frac {d}{c}} - c}{d x^{2} + c}\right ) + 2 \, a b c^{2} - 2 \, a^{2} c d - 6 \, {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x^{2}}{6 \, {\left (a^{2} b c^{3} - a^{3} c^{2} d\right )} x^{3}}, -\frac {6 \, a^{2} d^{2} x^{3} \sqrt {\frac {d}{c}} \arctan \left (x \sqrt {\frac {d}{c}}\right ) + 3 \, b^{2} c^{2} x^{3} \sqrt {-\frac {b}{a}} \log \left (\frac {b x^{2} - 2 \, a x \sqrt {-\frac {b}{a}} - a}{b x^{2} + a}\right ) + 2 \, a b c^{2} - 2 \, a^{2} c d - 6 \, {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x^{2}}{6 \, {\left (a^{2} b c^{3} - a^{3} c^{2} d\right )} x^{3}}, \frac {6 \, b^{2} c^{2} x^{3} \sqrt {\frac {b}{a}} \arctan \left (x \sqrt {\frac {b}{a}}\right ) - 3 \, a^{2} d^{2} x^{3} \sqrt {-\frac {d}{c}} \log \left (\frac {d x^{2} + 2 \, c x \sqrt {-\frac {d}{c}} - c}{d x^{2} + c}\right ) - 2 \, a b c^{2} + 2 \, a^{2} c d + 6 \, {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x^{2}}{6 \, {\left (a^{2} b c^{3} - a^{3} c^{2} d\right )} x^{3}}, \frac {3 \, b^{2} c^{2} x^{3} \sqrt {\frac {b}{a}} \arctan \left (x \sqrt {\frac {b}{a}}\right ) - 3 \, a^{2} d^{2} x^{3} \sqrt {\frac {d}{c}} \arctan \left (x \sqrt {\frac {d}{c}}\right ) - a b c^{2} + a^{2} c d + 3 \, {\left (b^{2} c^{2} - a^{2} d^{2}\right )} x^{2}}{3 \, {\left (a^{2} b c^{3} - a^{3} c^{2} d\right )} x^{3}}\right ] \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 1.46, size = 98, normalized size = 0.98 \begin {gather*} \frac {b^{3} \arctan \left (\frac {b x}{\sqrt {a b}}\right )}{{\left (a^{2} b c - a^{3} d\right )} \sqrt {a b}} - \frac {d^{3} \arctan \left (\frac {d x}{\sqrt {c d}}\right )}{{\left (b c^{3} - a c^{2} d\right )} \sqrt {c d}} + \frac {3 \, b c x^{2} + 3 \, a d x^{2} - a c}{3 \, a^{2} c^{2} x^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.34, size = 367, normalized size = 3.67 \begin {gather*} \frac {\ln \left (a^{13}\,b^2\,d^5-a^8\,b^7\,c^5+c^5\,x\,{\left (-a^5\,b^5\right )}^{3/2}+a^{10}\,d^5\,x\,\sqrt {-a^5\,b^5}\right )\,\sqrt {-a^5\,b^5}}{2\,a^6\,d-2\,a^5\,b\,c}-\frac {\ln \left (a^8\,b^7\,c^5-a^{13}\,b^2\,d^5+c^5\,x\,{\left (-a^5\,b^5\right )}^{3/2}+a^{10}\,d^5\,x\,\sqrt {-a^5\,b^5}\right )\,\sqrt {-a^5\,b^5}}{2\,\left (a^6\,d-a^5\,b\,c\right )}-\frac {\frac {1}{3\,a\,c}-\frac {x^2\,\left (a\,d+b\,c\right )}{a^2\,c^2}}{x^3}-\frac {\ln \left (a^5\,c^8\,d^7-b^5\,c^{13}\,d^2+a^5\,x\,{\left (-c^5\,d^5\right )}^{3/2}+b^5\,c^{10}\,x\,\sqrt {-c^5\,d^5}\right )\,\sqrt {-c^5\,d^5}}{2\,\left (b\,c^6-a\,c^5\,d\right )}+\frac {\ln \left (b^5\,c^{13}\,d^2-a^5\,c^8\,d^7+a^5\,x\,{\left (-c^5\,d^5\right )}^{3/2}+b^5\,c^{10}\,x\,\sqrt {-c^5\,d^5}\right )\,\sqrt {-c^5\,d^5}}{2\,b\,c^6-2\,a\,c^5\,d} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________